package com.javaketang.dky.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javaketang.dky.entity.EasybuyOrder;
import com.javaketang.dky.mapper.EasybuyOrderMapper;
import com.javaketang.dky.service.EasybuyOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dky
 * @since 2021-07-06
 */
@Service
public class EasybuyOrderServiceImpl extends ServiceImpl<EasybuyOrderMapper, EasybuyOrder> implements EasybuyOrderService {

    //订单类
    @Resource
    private EasybuyOrderMapper orderMapper;

    @Override
    public List queryByIdOrAllOrder(Page page, Integer userId) {
        return orderMapper.queryByIdOrAllOrder(page,userId);
    }

    @Override
    public List queryByIdOrAllOrder2(Page page, Integer userId) {
        return orderMapper.queryByIdOrAllOrder2(page,userId);
    }

    @Override
    public List queryOrderById(Integer id) {
        return orderMapper.queryOrderById(id);
    }
}
